#include <Windows.h>
#include <stdio.h>

#include "../HookProxy/HookProxy.h"

#pragma comment(lib, "ws2_32.lib")

typedef bool (*func)(void);

int main(int argc, char **argv){
    HINSTANCE inst = LoadLibrary(TEXT("HookProxy.dll"));
	if(!inst) {
		printf("LoadLibrary\n");
		getchar();
		exit(1);
	}
	func func1 = (func)GetProcAddress(inst, "hook_start");
	func func2 = (func)GetProcAddress(inst, "hook_stop");
	if(!func1 || !func2) {
		printf("GetProcAddress\n");
		getchar();
		exit(1);
	}
	func1();

	getchar();
	func2();
	while(1);
	return 0;
}